package com.pilot.game.service.dto;

import com.pilot.game.domain.Favorite;
import com.pilot.game.domain.Plan;

/**
 * FavoriteDto
 *
 * @author yhq
 * @version 2017/11/21 上午12:14
 */
public class FavoriteDTO extends Favorite{
    private Plan plan;

    public Plan getPlan() {
        return plan;
    }

    public void setPlan(Plan plan) {
        this.plan = plan;
    }

    public FavoriteDTO(Plan plan) {
        this.plan = plan;
    }

    public FavoriteDTO(Favorite favorite) {
        super(favorite.getCustomerName(), favorite.getFavoritePlan(), favorite.getPlanId());
    }
}
